-- GENERATED SPELL FOR [Putridus Shadowstalker] --


function spell0_11792(pUnit, Event) --@Evasion,Self--
pUnit:FullCastSpellOnTarget(15087,pUnit)
pUnit:RegisterEvent('Sorts_11792', 15321, 1)
end

function spell1_11792(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11792', 10337, 1)
end

function Sorts_11792(pUnit, Event)
local choix_sorts_11792 = math.random(0, 1)
if choix_sorts_11792 == 0 then
pUnit:RegisterEvent('spell0_11792', 1, 1)
end
if choix_sorts_11792 == 1 then
pUnit:RegisterEvent('spell1_11792', 1, 1)
end
end

function mob11792_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11792', math.random(1500, 3000), 1)
end

function mob11792_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11792_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11792_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11792, 1, 'mob11792_Action')
RegisterUnitEvent(11792, 2, 'mob11792_Leave')
RegisterUnitEvent(11792, 3, 'mob11792_Kill')
RegisterUnitEvent(11792, 4, 'mob11792_Die')
